package com.lagou.StageTwo.Assignment3.po;


/**
 * （4）用户消费信息类 特征：统计通话时长、统计上网流量、每月消费金额
 * @author 常红伟
 */
public class UserConsumption {

    /**
     * 统计通话时长
     */
    String countCallDuration;

    /**
     * 统计上网流量
     */
    String countInternetTraffic;

    /**
     * 每月消费金额
     */
    String countMonthlyRates;

    public UserConsumption() {
    }

    public UserConsumption(String countCallDuration, String countInternetTraffic, String countMonthlyRates) {
        this.countCallDuration = countCallDuration;
        this.countInternetTraffic = countInternetTraffic;
        this.countMonthlyRates = countMonthlyRates;
    }

    public String getCountCallDuration() {
        return countCallDuration;
    }

    public void setCountCallDuration(String countCallDuration) {
        this.countCallDuration = countCallDuration;
    }

    public String getCountInternetTraffic() {
        return countInternetTraffic;
    }

    public void setCountInternetTraffic(String countInternetTraffic) {
        this.countInternetTraffic = countInternetTraffic;
    }

    public String getCountMonthlyRates() {
        return countMonthlyRates;
    }

    public void setCountMonthlyRates(String countMonthlyRates) {
        this.countMonthlyRates = countMonthlyRates;
    }

    // 4.实现用户消费信息的打印
    public void show() {
        System.out.println("当月消费: 通话时长：" + getCountCallDuration() + "，上网流量为: " + getCountInternetTraffic() + "，月资费为: " + getCountMonthlyRates());
    }
}
